﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MySpace.Data;

/// <summary>
///WishZhuanTiTable 的摘要说明
/// </summary>
namespace DataBaseTable
{
    public class WishZhuanTiTable : DBTable
    {
        private const string tableName = "WishZhuanTi";
        public WishZhuanTiTable()
            : base(GetHandler.Init(), tableName)
        {
            this.GetRow();
            //没有参数重载
        }
        public WishZhuanTiTable(int id)
            : base(GetHandler.Init(), tableName)
        {
            this.Filter = "id=?";
            this.AddParameter("id", id);
            this.GetRow();
            //有参数重载
        }
        /// <summary>
        /// ID
        /// </summary>
        public int ID
        {
            get
            {
                try { return (int)this.DataRow["id"]; }
                catch { return 0; }
            }
        }

        /// <summary>
        /// 顶部图片
        /// </summary>
        public string BunnerImg
        {
            get
            {
                try { return (string)this.DataRow["BunnerImg"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["BunnerImg"] = value;
            }
        }
        /// <summary>
        /// 背景
        /// </summary>
        public string Background
        {
            get
            {
                try { return (string)this.DataRow["Background"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["Background"] = value;
            }
        }
        /// <summary>
        /// 专题时间
        /// </summary>
        public string ZhuanTiData
        {
            get
            {
                try { return (string)this.DataRow["ZhuanTiData"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["ZhuanTiData"] = value;
            }
        }
        /// <summary>
        /// 专题名称
        /// </summary>
        public string ZhuanTiName
        {
            get
            {
                try { return (string)this.DataRow["ZhuanTiName"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["ZhuanTiName"] = value;
            }
        }
        /// <summary>
        /// 内容背景
        /// </summary>
        public string ConBackground
        {
            get
            {
                try { return (string)this.DataRow["ConBackground"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["ConBackground"] = value;
            }
        }
        /// <summary>
        /// 文字颜色
        /// </summary>
        public string FontColor
        {
            get
            {
                try { return (string)this.DataRow["FontColor"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["FontColor"] = value;
            }
        }
        /// <summary>
        /// 赞助商名称
        /// </summary>
        public string SponsorName
        {
            get
            {
                try { return (string)this.DataRow["SponsorName"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["SponsorName"] = value;
            }
        }
        /// <summary>
        /// 赞助商链接
        /// </summary>
        public string SponsorLink
        {
            get
            {
                try { return (string)this.DataRow["SponsorLink"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["SponsorLink"] = value;
            }
        }
        /// <summary>
        /// guid
        /// </summary>
        public string ZTGuID
        {
            get
            {
                try { return (string)this.DataRow["ZTGuID"]; }
                catch { return string.Empty; }
            }
            set
            {
                this.DataRow["ZTGuID"] = value;
            }
        }

    }
}